import 'package:connectivity_plus/connectivity_plus.dart';

class NetWorkUtil {
    static Future<bool> checkNetWorkIsAvailable()  async {
        final List<ConnectivityResult> connectivityResult = await (Connectivity().checkConnectivity());
        if (connectivityResult.contains(ConnectivityResult.mobile)) {
          return true;
        } else if (connectivityResult.contains(ConnectivityResult.wifi)) {
          return true;
        } else {
          return false;
        }
    }






}